//
//  CollectionReusableView.m
//  Double
//
//  Created by 孟令博 on 15/5/23.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "CollectionReusableView.h"

@implementation CollectionReusableView
- (void)dealloc
{
    [_alabel release];
    [_myImage release];
    [super dealloc];
}
- (void)prepareForReuse
{
    
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    if (!self.alabel) {
//自定义标题栏样式
        self.myImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 170, 30)];
        [self.myImage setImage:[UIImage imageNamed:@"biao2.jpg"]];
        [self addSubview:_myImage];
        self.alabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 1, 100, 30)];
        [self.myImage addSubview:self.alabel];
        
        [self.myImage release];
        [self.alabel release];
    }
    


}
@end
